<?php

Yii::import('common.models._base.BaseClassCourseQuery');

class ClassCourseQuery extends BaseClassCourseQuery {

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function rules() {
        return array(
            array('queryuser_name,queryuser_email,query_message', 'required'),
            array('queryuser_email', 'email'),
            array('queryuser_name, queryuser_email,query_message', 'length', 'max' => 45),
            array('classes_id, courses_id', 'length', 'max' => 20),
            array('query_message', 'safe'),
            array('classes_id, courses_id', 'default', 'setOnEmpty' => true, 'value' => null),
            array('id, queryuser_name, queryuser_email, query_message, classes_id, courses_id', 'safe', 'on' => 'search'),
        );
    }

    public function attributeLabels() {
        return array(
            'id' => Yii::t('app', 'ID'),
            'queryuser_name' => Yii::t('app', 'Name'),
            'queryuser_email' => Yii::t('app', ' Email'),
            'query_message' => Yii::t('app', ' Message'),
            'classes_id' => null,
            'courses_id' => null,
            'classes' => null,
            'courses' => null,
        );
    }

}
